* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  width: 400px;
  padding: 16px;
  background-color: #f5f5f5;
  height: 505px !important;
  overflow-y: auto;
}

.container {
  width: 100%;
  height: 485px;
  padding-top: 35px; /* 为固定的header留出空间 */
}

.header {
  position: fixed;
  top: 0px;
  left: 16px;
  right: 16px;
  background-color: #fff;
  padding: 10px 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-controls {
  display: flex;
  gap: 10px;
  padding-left: 15px;
}

.filter-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.3;
  position: relative;
}

.filter-icon.active {
  opacity: 1;
}

.filter-icon.active::after {
  content: '✓'; /* 对勾符号 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white; /* 对勾颜色 */
  font-size: 10px; /* 对勾大小 */
  font-weight: bold;
  z-index: 9;
}



.date-container {
  display: list-item;
  /*grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));*/
  padding: 10px 0;
}

.date-item {
  padding: 15px 15px 0px 15px;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  height: 75px;
  margin-bottom: 15px;
}

/* 添加新样式规则 */
.date-item .content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  /*margin-bottom: 10px;*/
}

.date-item .countdown {
  font-size: 13px;
  font-weight: bold;
  color: #777;
  text-align: right;
  white-space: nowrap;
  display: inline-flex;  /* 改为inline-flex */
  align-items: baseline;  /* 保持文字基线对齐 */
  height: 100%;
  /*margin-top: 25px;*/
}

.countdown span{
  color: #333333;
  font-size: 20px;
  vertical-align: baseline;  /* 确保与其他文字底部齐平 */
  line-height: 1;  /* 设置行高为1，避免额外空间 */
}
.date-item.past {
  opacity: 0.6;
  background-color: #f0f0f0;
}

/* 鼠标悬停效果 - 确保背景色和文字颜色变化 */
.date-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  background-color: #2196f3;  /* 悬停时的背景色 */
  color: white;  /* 悬停时的文字颜色 */
}

/* 确保悬停时子元素的颜色也变化 */
.date-item:hover h3,
.date-item:hover p,
.date-item:hover div,
.date-item:hover span,
.date-item:hover{
  color: white;
}

/* 移除可能存在的点击效果，如果有的话 */
.date-item:active {
  /* 如果有点击效果的定义，这里可以删除或注释掉 */
  /* 例如：background-color: #1976d2; */
}
.date-item .icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

.date-item h3 {
  font-size: 16px;
  margin: 0 0 5px 0;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.date-item p {
  font-size: 14px;
  color: #666;
  margin: 0 0 10px 0;
}

.date-actions {
  position: absolute;
  top: 5px;
  right: 5px;
  display: none;
  /*gap: 8px;*/
}

/* 添加以下新规则 */
.date-item:hover .date-actions {
  display: flex;
}

.date-actions img{
  width: 16px;
  cursor: pointer;
  margin-left: 5px;
  opacity: 0.7;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #666;
}


.color-options {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.color-option {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #ddd;
  opacity: 0.5;
  position: relative;
}

.color-swatch.active{
  opacity: 1;
}
.color-swatch.active::after {
  content: '✓'; /* 对勾符号 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white; /* 对勾颜色 */
  font-size: 10px; /* 对勾大小 */
  font-weight: bold;
  z-index: 9;
}

.submit-btn {
  width: 100%;
  padding: 10px;
  background-color: #2196f3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

/* 响应式调整 */
/*@media (max-width: 400px) {*/
/*  .date-container {*/
/*    grid-template-columns: 1fr;*/
/*  }*/
/*}*/
.date-container{
  height: 450px;
  overflow-y: auto;
}

.date-item .left-content {
  flex: 1;  /* 占据剩余空间 */
  min-width: 0;  /* 允许内容收缩 */
  padding-right: 10px;  /* 添加右边距避免与countdown太近 */
  /* 移除width: 60%; 因为与flex: 1; 冲突 */
}





/* 顶部右侧2个图标 */
.top-right-div{
  margin-right: 5px;
  opacity: 0.7;
}
.top-right-div img{
  width: 16px;
  cursor: pointer;
  margin-left: 6px;
}

/* 变灰 */
.opacity06{
  opacity: 0.6;
}

/* 三种颜色 */
.level-null {
  background-color: #bbbbbb;
}
.level-0 {
  background-color: #6ca06c;
}
.level-1 {
  background-color: #6495ed;
}
.level-2 {
  background-color: #e66465;
}

/* 日历宽度 */
.xdsoft_datetimepicker .xdsoft_datepicker{
  width: 245px;
}
.xdsoft_datetimepicker .xdsoft_month{
  width: 80px;
}
.xdsoft_datetimepicker .xdsoft_year{
  width: 60px;
}

.version {
  position: fixed;
  bottom: 2px;
  right: 5px;
  font-size: 10px;
  color: #777777;
  z-index: 99;
  cursor: pointer;
}